package com.chunuo.eduservice.openfeign;

import com.chunuo.commonutils.ordervo.UcenterMemberOrder;
import com.chunuo.eduservice.openfeign.impl.UcenterMemberOpenFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 类的作用
 *
 * @author liujiamiao
 * @email 2544296058@qq.com
 * @date 2020-07-27 22:05
 */
@Component
@FeignClient(value = "service-user",fallback = UcenterMemberOpenFeignImpl.class)
public interface UcenterMemberOpenFeign {

    @GetMapping("/userservice/ucenter-member/getInfo/{userId}")
    public UcenterMemberOrder getInfo(@PathVariable("userId")String userId);
}
